# price = 10
# num = 3
# all: int = price * num
# print('总价为:', all)

# p1 = 10
# p1 = '十'
# print('输出:', p1)

# 类型判断
# age = 10
# name = '五级'
# print(type(age), type(name))
# print(isinstance(age, int))
# print(isinstance(name, str))

# 字符串运算
# s1 = '你好'
# s2 = '谢谢'
# s3 = s1 + s2
# print(s3)
# s4 = s1 * 4 # 4个重复的字符串
# # 你好你好你好你好
# print(s4)
#
# s5 = s1 + 2 # 语法错误
# print(s5)

# 字符串索引
s1 = '你好,世界'
print(s1[0], s1[-1])

# 计算
n = 0.1 + 0.2
print(n)
